package com.zmn.oms.dubbo.interfaces.zmn.normal.order;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dro.position.OrderDistanceDRO;
import com.zmn.oms.dubbo.dto.zmn.order.OrderWorkPositionDRO;

import javax.validation.constraints.NotNull;

/**
 * 工单距离查询远程服务
 *
 * @author hankangshuai
 * @since 2020/08/28
 */
public interface OrderWorkPositionListRemoteService {

    /**
     * 根据工单ID查询
     *
     * @param workId 工单ID
     * @return the by order id
     */
    ResponseDTO<OrderWorkPositionDRO> getByWorkId(Long workId);

    /**
     * 获取距离
     *
     * @param orderDistanceDRO
     * @return
     */
    ResponseDTO<Integer> getOrderDistance(@NotNull(message = "入参不能为空") OrderDistanceDRO orderDistanceDRO);
}
